#include <QApplication>
#include "zqopencv.h"
#include "zqfunction.h"
#include "zfunction.h"
#include <QDebug>
#include <QLabel>
#include "sysinfo/zcpuinfo.h"


int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    zgq::ZQFunction function;
    std::vector<double> list={1,2,3,4,5,6,7,8,9,10};
    double median = function.median(list);
    qDebug()<<median;
    qDebug()<<zgq::mkDir("new");
    qDebug()<<"checknet"<<zgq::checkOnlineNet();
    QLabel w;
    //w.setGeometry(10,100,100,100);
    cv::Mat img=cv::Mat(100, 100,CV_8UC3,cv::Scalar(255,0,255));
    QImage image = zgq::cvMat2QImage(img);
    w.setPixmap(QPixmap::fromImage(image));
    w.show();
    qDebug()<<ZCpuInfo().get_cpu_usage__();

    return a.exec();
}
